package com.bdmc.report.mapper;

import com.bdmc.common.annotation.DataColumn;
import com.bdmc.common.annotation.DataPermission;
import com.bdmc.report.domain.ReportCarOil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdmc.report.domain.bo.ReportCarOilBo;
import com.bdmc.report.domain.vo.ReportCarOilVo;
import com.bdmc.common.core.mybatisplus.core.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 车辆油量统计Mapper接口
 *
 * @author bdmc
 * @date 2022-08-10
 */
public interface ReportCarOilMapper extends BaseMapperPlus<ReportCarOil> {
    @DataPermission({@DataColumn(value = "d.dept_id")})
    Page<ReportCarOilVo> mySelectPage(@Param("page") Page<ReportCarOil> page, @Param("param") ReportCarOilBo bo);

    @DataPermission({@DataColumn(value = "d.dept_id")})
    List<ReportCarOilVo> mySelectPage(@Param("param") ReportCarOilBo bo);

}
